import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import echarts from 'echarts'
import moment from 'moment'
import clipboard from 'clipboard'
import config from '@/config/globalSettings'
import globalConfig from '@/config/global.config'
import '@/components/base/global.less'
import '@/assets/styles/widget.less'
import 'core-js'
// Json表单
import formCreate from '@form-create/ant-design-vue'
// 引用百度离线地图
// import '../public/offlinemap/map_load'
// 拖拉拽表单
//import { GenerateAntdForm } from '../public/form-making-advanced'
//import '../public/form-making-advanced/dist/FormMaking.css'
// 打印
// import Print from 'vue-print-nb'
import Print from 'vue-print-nb'
import { PageView, SplitLayout } from '@/components/layouts'
import CustomTable from '@/components/base/Table/CustomTable'
import OperationPermission from '@/components/business/OperationPermission'
import FileNamePermission from '@/components/business/FileNamePermission'




// import TitleComponent from '@/components/base/TitleComponent'

// 引入自定义全局组件
Vue.use(Antd)
//Vue.use(GenerateAntdForm)
Vue.use(formCreate)
Vue.use(Print)

Vue.component('PageView', PageView)
Vue.component('SplitLayout', SplitLayout)
Vue.component('CustomTable', CustomTable)
Vue.component('OperationPermission', OperationPermission)
Vue.component('FileNamePermission', FileNamePermission)


// Vue.component('TitleComponent', TitleComponent)

Vue.prototype.$echarts = echarts
Vue.prototype.$config = config
Vue.prototype.$globalConfig = globalConfig
Vue.prototype.moment = moment
Vue.prototype.clipboard = clipboard

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
